﻿using System;
using System.Collections.Generic;

namespace Rj_GsInsurance.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 退药申请表
    /// </summary>
    public partial class ApplicationReturnRecipe
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 处方ID
        /// </summary>
        public long RecipeId { get; set; }
        /// <summary>
        /// 处方明细ID
        /// </summary>
        public long RecipeDetailId { get; set; }
        /// <summary>
        /// 项目ID
        /// </summary>
        public int ItemId { get; set; }
        /// <summary>
        /// 项目名称
        /// </summary>
        public string? ItemName { get; set; }
        /// <summary>
        /// 退类型 1引用删除 2引用数量变更
        /// </summary>
        public string ReturnType { get; set; } = null!;
        /// <summary>
        /// 原引用数量
        /// </summary>
        public decimal QuoteNum { get; set; }
        /// <summary>
        /// 当前数量
        /// </summary>
        public decimal CurrentNum { get; set; }
        /// <summary>
        /// 院区id
        /// </summary>
        public int HospitalId { get; set; }
        /// <summary>
        /// 申请状态 1:已申请 2:已退药 3:已退费
        /// </summary>
        public string ApplyStatus { get; set; } = null!;
        /// <summary>
        /// 创建人
        /// </summary>
        public int? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        public int? UpdateBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 中药处方退药剂数 
        /// </summary>
        public decimal? RecipeCount { get; set; }
        /// <summary>
        /// 退费原因 
        /// </summary>
        public string? Reason { get; set; }
    }
}
